<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['数据管理','参数文件上传','文件上传']" icon="fa fa-download" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
	<div class="s_page_wrap">
		<div class="page-header">
			<h1 class="page_detail_title">文件上传</h1>
		</div>
		<div class="row" style="margin-top:5px;">
		<div class="col-xs-12">
			<form  name="fileForm" id="fileForm" class="form-horizontal" (ngSubmit)="onSubmit()" novalidate="novalidate" [saBootstrapValidator]="validatorOptions">

				<div class="form-group s_fix_select2">
					<label class="control-label col-sm-1 no-padding-right">车牌号<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<select class="select2 form-control" id="carNumberSelect2" name="carNumber" [(ngModel)]='page.carNumber' placeholder="">
								<option value=''></option>
								<!--<option *ngFor="let item of carList" [value]='item.value'>{{item.label}}</option>-->
							</select>
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right" for="sourceKey">设备ID</label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" name="deviceId" id="deviceId" type="text"  [(ngModel)]='page.deviceId' placeholder="设备ID" />
						</div>
					</div>
				</div>

				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right" for="sourceUrl">版本号<sup>*</sup></label>
					<div class="col-sm-10">
						<div class="clearfix">
							<input class="form-control" [(ngModel)]='page.version' name="version" type="text" placeholder="版本号" />
						</div>
					</div>
				</div>
				
				<div class="form-group">
					<label class="control-label col-sm-1 no-padding-right" for="imgFile">文件<sup>*</sup></label>
					<div class="col-sm-10">
			    		<div class="clearfix module_up">
							<button  type="button"  class="btn btn-primary up_btn" style="width: 120px;">点击上传
								<input type="file" class="up" (change)="fileChange($event.target.files)" name="fileToUpload" (click)='clearFile()' [(ngModel)]='fileUp'  type="file"  placeholder=''/>
							</button>
							<span class="row" class="note">注：格式txt</span>
						</div>
						<div *ngIf="fileToUpload" style="margin-top: 20px;">
							<ul>
								<li class="file_list" style="line-height: 22px;padding: 4px;"><i class="fa fa-file-text-o" style="margin-right: 12px;"></i>{{fileToUpload.name}}<i class="fa fa-check-circle green" style="margin-left: 60px;"></i></li>
							</ul>
						</div>
						<!--<div class="clearfix">
							<input class="form-control" (change)="fileChange($event.target.files)" name="fileToUpload"  type="file"  />
						</div>-->
					</div>
				</div>

				<div class="center">
					<button type="submit" class="btn btn-primary">上传</button>
					<button type="button" (click)='goBack()' class="btn default">返回</button>
				</div>
			</form>
			<div class="hr hr-dotted"></div>
		</div>
	</div>
	</div>
</div>